import {request} from "@@/exports";

/**
 * 上传图片数据
 * @param data
 */
export async function uploadImage(data:any){
    return  request<BaseResponse<string>>(`/file/upload/image`,{
        method:'POST',
        data:data,
        headers:{
            'Content-Type': 'multipart/form-data',
        }
    })
}


/**
 * 上传视频数据
 * @param data
 */
export async function uploadVideo(data:any){
    return  request<BaseResponse<string>>(`/file/upload/video`,{
        method:'POST',
        data:data,
        headers:{
            'Content-Type': 'multipart/form-data',
        }
    })
}
